<?php

/**
 * 优惠券基类
 */
abstract class Application_Model_Coupons_CouponBase {
    
    protected $_coupon;
    
    public function __construct($coupon) {
        $this->_coupon =$coupon;
    }

    /**
     * 创建一个优惠券验证对象
     * @param type $coupon 
     * @return Application_Model_Coupons_CouponBase
     */
    public static function createCoupon($coupon){
        return new Application_Model_Coupons_Vouchers($coupon);
    }
    
    /**
     * 返回验证结果
     * @return  Application_Model_CouponResult
     */
    public abstract function Validate($userId,$money,$password);
    
    public abstract function getTitle();
}
